.dnfapp-menu {
    height: 100%;
    float: left;
    border-right: 0.2rem solid rgba(87, 83, 83, 0.486);
    background-color: rgba(255, 255, 255, 0.3);

    .dnfapp-menu-title {
        width: 100%;
        height: 2.4rem;
        padding: 0.2rem;
        user-select: none;

        .title1 {
            height: 2rem;
            width: calc(100% - 2rem);
            float: left;

        }

        .title1.fold {
            display: none;
        }

        .title2.fold {
            /*折叠时显示*/
            height: 2rem;
            width: 3.3rem;
            background-color: #0044BB;
            float: left;
            position: relative;
        }

        .title2:after {
            /*绘制渐变文字*/
            content: "MENU";
            font-weight: bold;
            font-size: 1rem;
            height: 2rem;
            width: 3.3rem;
            position: absolute;
            top: 0;
            left: 0;

            background-image: linear-gradient(60deg, #E21143, #FFB03A);
            color: #6e6ec7;
            // color: transparent;
        }

        .title2.unfold {
            display: none;
            /*展开式隐藏*/
        }

        .fold-button {
            cursor: pointer;
            float: right;
            position: relative;
            top: 0.2rem;
            right: 0.4rem;

            /*绘制三道杠*/
            width: 2rem;
            height: .3rem;
            padding: .3rem 0;
            background-color: @tagColor;
            border-top: .3rem solid @tagColor;
            border-bottom: .3rem solid @tagColor;
            background-clip: content-box;
        }
    }

    .dnfapp-menu-search {
        height: 3rem;
        padding-left: 0.4rem;
        padding-top: 0.4rem;

        .search-input {
            width: 11.1rem;
            height: 2.6rem;
            float: left;
            border: 0.1rem solid gray;
            border-right: 0;
            border-radius: 0.5rem 0 0 0.5rem;
            padding: 0;
            margin: 0;
            background: rgba(255, 255, 255, 0.2);
            color: inherit;
            text-shadow: 0 0 2px gray, 0 0 2px gray, 0 0 2px gray;
        }

        .search-button {
            width: 2.6rem;
            height: 2.6rem;
            cursor: pointer;
            float: left;
            background-color: #d3d3d3;
            color: white;
            border-radius: 0 0.5rem 0.5rem 0;
            border: 0.1rem solid gray;
            border-left: 0;

            /*绘制放大镜图标*/
            .search-img {
                width: 1.2rem;
                height: 1.2rem;
                border: 0.3rem solid currentColor;
                border-radius: 100%;
                position: relative;
                top: 0.2rem;
                left: 0.2rem;
            }

            .search-img:after {
                clear: both;
                content: "";
                width: 0.8rem;
                height: 0.3rem;
                background-color: currentColor;
                transform: rotate(45deg); //旋转45度
                position: absolute;
                top: 1.3rem;
                left: 1rem;
            }
        }

        .search-button:hover {
            color: #d3d3d3;
            background-color: white;
        }
    }

    .dnfapp-menu-search.unfold {
        width: 100%;
    }

    .dnfapp-menu-search.fold {
        width: 0px;
        overflow: hidden;
    }

    .dnfapp-menu-list {
        width: 100%;
        height: calc(100% - 7rem);
        // overflow-y: scroll;
    }
}

.dnfapp-menu.fold {
    width: 6rem;
}

.dnfapp-menu.unfold {
    width: 15rem;
}

.dnfapp-menu .dnfapp-menu-list {
    user-select: none;

    .menu-list-row {
        cursor: pointer;
        height: 4.4rem;
        width: calc(100% - 1.5rem);
        overflow: hidden;
        padding-top: 0.5rem;
        padding-left: 1rem;
        padding-right: 0.5rem;

        .menu-list-row-img {
            height: 4rem;
            width: 4.2rem;
            background-color: transparent;
            background-size: 40px 40px;
            background-repeat: no-repeat;
            // background-: ;
            // background-position-x: -20px;
            float: left;
        }

        .menu-list-row-text {
            float: left;
            height: 4rem;
            width: calc(100% - 5rem);
            font-size: 1.4rem;
            overflow: hidden;
            // padding:0.2rem;
        }
    }
}

@tagColor: #0044BB;

.dnfapp-container {
    float: left;
    height: 99%;

    .dnfapp-tags-container {
        user-select: none;
        width: 100%;
        height: 3rem;
        // border-top: 0.1rem solid red;

        .dnfapp-tags-buttons {
            float: right;
            height: 2.8rem;
            width: 4rem;
            border: 0.1rem solid gray;
            border-radius: 0.5rem 0.5rem 0 0;

            .left {
                cursor: pointer;
                width: calc(50% - 0.1rem);
                height: 2.8rem;
                position: relative;
                float: left;
                border-right: 0.1rem solid gray;
                color: gray;
            }

            .right {
                cursor: pointer;
                width: 50%;
                height: 2.8rem;
                position: relative;
                float: left;
                color: gray;
            }

            .left:hover,
            .right:hover {
                color: black;
            }

            /*绘制左三角*/
            .left:after {
                content: "";
                width: 0;
                height: 0;
                border-top: 0.75rem solid transparent;
                border-bottom: 0.75rem solid transparent;
                border-right: 1.5rem solid currentColor;

                position: absolute;
                top: 0.625rem;
                left: 0.1rem;
            }


            /*绘制右三角*/
            .right:after {
                content: "";
                width: 0;
                height: 0;
                border-top: 0.75rem solid transparent;
                border-bottom: 0.75rem solid transparent;
                border-left: 1.5rem solid currentColor;

                position: absolute;
                top: 0.625rem;
                right: 0.1rem;
            }
        }

        .dnfapp-tags-group {
            float: left;
            height: 3rem;
            width: calc(100% - 4.2rem);
            white-space: nowrap; //不换行

            .dnfapp-tags.active {
                font-weight: bold;
                background-color: @tagColor;
                color: white;
                border-color: @tagColor;

                .dnfapp-tags-close {
                    display: block;
                }
            }

            .dnfapp-tags {
                cursor: pointer;
                display: inline-table;
                // float: left;
                margin-left: 0.5rem;
                vertical-align: top;
                height: 2.8rem;
                width: 10rem;
                border: 0.1rem solid gray;
                border-radius: 0.5rem 0.5rem 0 0;
                font-size: 1.5rem;
                line-height: 2.8rem;
                padding-left: 0.5rem;
                position: relative;
                background-color: rgba(255, 255, 255, 0.3);

                /*尽量大一点*/
                .dnfapp-tags-close {
                    display: none;
                    height: 2.9rem;
                    width: 2.9rem;
                    position: absolute;
                    font-size: 1rem;
                    line-height: 2.9rem;
                    text-align: center;
                    right: 0;
                    top: 0;
                }
            }
        }
    }

    .dnfapp-frame-container {
        height: calc(80% - 3rem);
        width: 100%;

        .dnfapp-frame-window {
            width: 100%;
            height: 100%;
            border: none;
            border-top: 0.5rem solid @tagColor;
        }
    }

    .dnfapp-console-container {
        height: 20%;
        width: 100%;
        border-top: 0.5rem solid @tagColor;
        padding: 0 0.5rem;

        .console-title {
            height: 3rem;
            user-select: none;
            font-size: 1.8rem;
            line-height: 3rem;
            float: left;
        }

        .console-clear {
            cursor: pointer;
            height: 2rem;
            width: 2rem;
            padding: 0.5rem;
            float: left;
        }

        #dnf-console {
            height: calc(95% - 2rem - 1px);
            width: calc(100% - 1rem);
            border: solid 1px @tagColor;
            border-radius: 0.5rem;
            overflow-y: scroll;
            resize: none;
            box-sizing: border-box;
            box-shadow: inner 0 0 4px rgba(0, 0, 0, 0.2);
            font-size: 1.8rem;
            background-color: rgba(255, 255, 255, 0.3);
            color: inherit;
            text-shadow: 0 0 2px gray, 0 0 2px gray, 0 0 2px gray;
        }

        // #dnf-console:focus {
        //     border: solid 1px @tagColor;
        //     outline: none !important;
        //     // box-shadow: 0 0 10px #719ECE;
        // }

        /*滚动条整体样式*/
        #dnf-console::-webkit-scrollbar {

            width: 1rem;
            /*高宽分别对应横竖滚动条的尺寸*/
            height: 0.1rem;
        }

        #dnf-console::-webkit-scrollbar-thumb {
            /*滚动条里面小方块*/
            border-radius: 1rem;
            box-shadow: inset 0 0 1rem @tagColor;
            background: #535353;
        }

        #dnf-console:-webkit-scrollbar-track {
            /*滚动条里面轨道*/
            box-shadow: inset 0 0 5px @tagColor;
            border-radius: 1rem;
            background: #ededed;
        }

        svg {
            color: #fff;
        }
    }
}

.dnfapp-container.fold {
    width: calc(100% - 16rem);
}

.dnfapp-container.unfold {
    width: calc(100% - 7rem);
}

.dnfapp-tag-contextmenu {
    /*遮罩层*/
    user-select: none;
    z-index: 5000;
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: #5353531e;

    .dnfapp-tag-contextmenu-container {
        position: absolute;
        width: 15rem;
        background-color: rgba(255, 255, 255, 0.6);
        color: #000;
        border: 0.1rem solid #535353;
        top: 3rem;
        user-select: none;


        .ontextmenu-menu-border-top {
            border-top: 0.1rem solid #8b8989;
        }

        .empty {
            height: 1.5rem;
            width: 100%;
        }

        .contextmenu-menu {
            user-select: none;
            cursor: pointer;
            font-size: 1.5rem;
            height: 2.5rem;
            width: 100%;
            margin: 0 auto;
            line-height: 2.5rem;
            text-align: center;

            border-bottom: 0.1rem solid #8b8989;
            // border-bottom: none;
        }

        .contextmenu-menu:hover {
            color: white;
            background-color: #535353;
        }
    }
}